package com.account;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@ComponentScan
@EnableAutoConfiguration
@EnableTransactionManagement
@EnableScheduling
@Configuration
public class Application extends SpringBootServletInitializer {
    @Bean
    public SpringUtil springUtil(){return new SpringUtil();}

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}
